home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Leonardo the Inventor
/
Leonardo The Inventor (93026)(Broderbund)(Riverdeep)(2004).iso
/
LEOWINMV
/
DRUMMACH.DIR
/
00075_Script_75
< prev
next >
Wrap
Text File
|
1996-03-18
|
3KB
|
114 lines
on startMovie
global oldVolume
put the volume of sound 1 into oldVolume
global currentRhythmLine, currentRhythmName
put 1 into currentRhythmLine
updateRhythmName
global BASS_SPRITE, SNARE_SPRITE, HIHAT_SPRITE, CYMBAL1_SPRITE
global CYMBAL2_SPRITE, CYMBAL3_SPRITE, TOM1_SPRITE, TOM2_SPRITE, TOM3_SPRITE,
put 3 into BASS_SPRITE
put 4 into SNARE_SPRITE
put 5 into HIHAT_SPRITE
put 6 into CYMBAL1_SPRITE
put 7 into CYMBAL2_SPRITE
put 8 into CYMBAL3_SPRITE
put 9 into TOM1_SPRITE
put 10 into TOM2_SPRITE
put 11 into TOM3_SPRITE
set the immediate of sprite BASS_SPRITE to true
set the immediate of sprite SNARE_SPRITE to true
set the immediate of sprite HIHAT_SPRITE to true
set the immediate of sprite CYMBAL1_SPRITE to true
set the immediate of sprite CYMBAL2_SPRITE to true
set the immediate of sprite CYMBAL3_SPRITE to true
set the immediate of sprite TOM1_SPRITE to true
set the immediate of sprite TOM2_SPRITE to true
set the immediate of sprite TOM3_SPRITE to true
put 13 into VOL_UP_BTN
put 14 into VOL_DOWN_BTN
put 15 into RHYTHM_BTN
put 16 into STOP_BTN
put 17 into POWER_BTN
set the immediate of sprite VOL_UP_BTN to true
set the immediate of sprite VOL_DOWN_BTN to true
set the immediate of sprite RHYTHM_BTN to true
set the immediate of sprite STOP_BTN to true
set the immediate of sprite POWER_BTN to true
global theVolume
put 256 into theVolume
put theVolume into field "Volume"
set the volume of sound 1 to theVolume
end startMovie
on stopMovie
global oldVolume
set the volume of sound 1 to oldVolume
end stopMovie
on nextRhythm
global currentRhythmLine, currentRhythmName
put currentRhythmLine + 1 into currentRhythmLine
if currentRhythmLine > the number of lines in field "RhythmList" then put 1 into currentRhythmLine
updateRhythmName
go frame "Rhythm"
end nextRhythm
on updateRhythmName
global currentRhythmLine, currentRhythmName
put line currentRhythmLine of field "RhythmList" into currentRhythmName
put currentRhythmName into field "CurrentSequence"
end updateRhythmName
on loopRhythm
if not soundBusy(1) then
put "Looping"
go frame "RhythmLoop"
else
go the frame
end if
end loopRhythm
on stopRhythm
sound stop 1
go "on"
end stopRhythm
on playNote aNote
puppetSound aNote
go frame aNote
end playNote
on raiseVolume
adjustVolume 32
end raiseVolume
on lowerVolume
adjustVolume -32
end lowerVolume
on adjustVolume howMuch
global theVolume
put theVolume+howMuch into theVolume
if theVolume > 256 then put 256 into theVolume
if thevolume < 16 then put 16 into theVolume
put theVolume into field "Volume"
set the volume of sound 1 to theVolume
if not soundBusy(1) then
puppetSound "VOLADJ"
end if
end adjustVolume
on turnOn
waitCursor
puppetSound "TURN_ON"
go "TurnOn"
normalCursor
end turnOn